# _*_ coding:utf-8 _*_
# @File  : datetime_util.py
# @Time  : 2021-12-21  09:25
# @Author: zizle
import datetime


def verify_datetime_format(datetime_str, f='%Y-%m-%d'):
    if not datetime_str:
        return ''
    try:
        fs = datetime.datetime.strptime(datetime_str, f).strftime(f)
        return fs
    except ValueError:
        return ''

